//
//  LogNewWeightViewController.h
//  iWeighMyself
//
//  Created by Francisco Gindre on 7/28/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Weight.h"
#import "IWeighMyselfAppDelegate.h"
#import "KeyBoardTextFieldCell.h"


@interface LogNewWeightViewController : UITableViewController <UITextFieldDelegate> {
	
	Weight *currentEntry;
	
	IWeighMyselfAppDelegate *appDelegate;
	
	NSArray *sectionTitles;
	
	//KeyBoardTextFieldCell *weightCell;
}

@property (nonatomic,retain) Weight *currentEntry;
@property (nonatomic,retain) IWeighMyselfAppDelegate *appDelegate;
@property (nonatomic,retain) NSArray * sectionTitles;
//@property (nonatomic,retain) IBOutlet KeyBoardTextFieldCell *weightCell;


/*
 loads last weight from database
 */

-(Weight*) loadLastWeight ;

/*
 returns a cell containing an UITextField configured as keyboard for text (not email)
 */

//- (UITableViewCell *) createEnterWeightAtIndexPath :(NSIndexPath*)indexPath tableView:(UITableView *) tableView;

/*
 saves the current weight and returns to main screen
 */
-(void)saveWeight:(id)sender;
@end
